package com.weipeep.sys.service;

import com.weipeep.sys.domain.SignDO;
import com.weipeep.common.base.CoreService;
import com.weipeep.sys.domain.SignInDo;
import org.apache.poi.ss.formula.functions.T;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2018-04-16 21:15:48 | wangyun</small>
 */
public interface SignService extends CoreService<SignDO> {

    /**
     * 签到签退
     * signType=1签到 2签退
     * @param userId
     * @param signType
     * @return
     */
    boolean signOrOut(Long userId, Integer signType);

    /**
     * 获取时间段内的签到信息
     * @param startTime
     * @param endTime
     * @return
     */
    Map<Long,SignDO> fetchSigned(Date startTime, Date endTime);


    /***
     * 获取签到列表
     */
    List<SignInDo> getSignInList(Date startTime, Date endTime);
}
